<?php
defined('IN_IXDCW') or exit('Access Denied');
include tpl('header');
show_menu($menus);
?>
	<form action="?" method="post" id="dform">
<input type="hidden" name="moduleid" value="<?php echo $moduleid;?>"/>
<input type="hidden" name="file" value="<?php echo $file;?>"/>
<input type="hidden" name="action" value="<?php echo $action;?>"/>
<input type="hidden" name="itemid" value="<?php echo $itemid;?>"/>
<input type="hidden" name="forward" value="<?php echo $forward;?>"/>

<div class="tt"><?php echo $tname;?></div>
<table cellpadding="2" cellspacing="1" class="tb">
<tr>
    <td class="tl"><span class="f_red">*</span> 简历名称</td>
	<td><input name="post[title]" type="text" id="title" size="60" datatype="*2-999" nullmsg="请填写标题" errormsg="最少输入2个字符" value="<?php echo $title;?>"/> <?php echo level_select('post[level]', '级别', $level, 'id="level"');?></td>
</tr>


<tr>
    <td class="tl"><span class="f_red">*</span> 行业/职位</td>
	<td><?php echo Post::catTree('post[catid]', $moduleid, '选择分类' ,$catid, 'datatype="n" nullmsg="请选择分类"');?></td>
</tr>

<tr>
    <td class="tl"><span class="f_red">*</span> 真实姓名</td>
    <td><input name="post[truename]" type="text" id="truename" size="20" datatype="*2-999" nullmsg="请填写真实姓名" errormsg="最少输入2个字符" value="<?php echo $truename;?>"/> <br/><span id="dtruename" class="f_red"></span></td>
</tr>

<tr>
    <td class="tl"><span class="f_hid">*</span> 免冠照片</td>
	<td><?php echo Post::picture($moduleid, 'thumb', 'post[thumb]', $thumb ,$MOD['thumb_width'], $MOD['thumb_height']);?></td>
</tr>

<tr>
    <td class="tl"><span class="f_red">*</span> 性别</td>
    <td>
		<?php
		foreach ($GENDER as $k => $v) {
			if ($k == 0) continue;
			?>
            <input type="radio" name="post[gender]" id="gender_<?php echo $k;?>" value="<?php echo $k;?>"<?php echo $k == $gender ? ' checked' : '';?>/><label for="gender_<?php echo $k;?>"> <?php echo $v;?></label>
			<?php
		}
		?>
    </td>
</tr>

<tr>
    <td class="tl"><span class="f_red">*</span> 婚姻状况</td>
    <td>
		<?php
		foreach ($MARRIAGE as $k => $v) {
			if ($k == 0) continue;
			?>
            <input type="radio" name="post[marriage]" id="marriage_<?php echo $k;?>" value="<?php echo $k;?>"<?php echo $k == $marriage ? ' checked' : '';?>/><label for="marriage_<?php echo $k;?>"> <?php echo $v;?></label>
			<?php
		}
		?>
    </td>
</tr>

<tr>
    <td class="tl"><span class="f_red">*</span> 现居住地</td>
    <td><?php echo ajax_area_select('post[areaid]', '请选择', $areaid);?> <span id="dareaid" class="f_red"></span></td>
</tr>

<tr>
    <td class="tl"><span class="f_red">*</span> 生日</td>
    <td>
        <input name="post[byear]" type="text" id="byear" size="4" value="<?php echo $byear;?>"/> 年
        <select name="post[bmonth]">
			<?php for ($i = 1; $i < 13; $i++) {
			echo '<option value="' . $i . '"' . ($i == $bmonth ? ' selected' : '') . '>' . $i . '</option>';
		}
			?>
        </select>
        月
        <select name="post[bday]">
			<?php for ($i = 1; $i < 32; $i++) {
			echo '<option value="' . $i . '"' . ($i == $bday ? ' selected' : '') . '>' . $i . '</option>';
		}
			?>
        </select>
        日

        <span id="dbyear" class="f_red"></span>
    </td>
</tr>


<tr>
    <td class="tl"><span class="f_hid">*</span> 身高</td>
    <td><input name="post[height]" type="text" id="height" size="10" value="<?php echo $height;?>"/> cm <span id="dheight" class="f_red"></span></td>
</tr>

<tr>
    <td class="tl"><span class="f_hid">*</span> 体重</td>
    <td><input name="post[weight]" type="text" id="weight" size="10" value="<?php echo $weight;?>"/> kg <span id="dweight" class="f_red"></span></td>
</tr>

<tr>
    <td class="tl"><span class="f_red">*</span> 学历</td>
    <td>
		<?php
		foreach ($EDUCATION as $k => $v) {
			if ($k == 0) continue;
			?>
            <input type="radio" name="post[education]" id="education_<?php echo $k;?>" value="<?php echo $k;?>"<?php echo $k == $education ? ' checked' : '';?>/><label for="education_<?php echo $k;?>"> <?php echo $v;?></label>
			<?php
		}
		?>
        &nbsp;&nbsp;(以上)
    </td>
</tr>

<tr>
    <td class="tl"><span class="f_red">*</span> 毕业院校</td>
    <td><input name="post[school]" type="text" id="school" size="30" value="<?php echo $school;?>"/> <span id="dschool" class="f_red"></span></td>
</tr>

<tr>
    <td class="tl"><span class="f_hid">*</span> 所学专业</td>
    <td><input name="post[major]" type="text" id="major" size="30" value="<?php echo $major;?>"/></td>
</tr>

<tr>
    <td class="tl"><span class="f_hid">*</span> 专业技能</td>
    <td><input name="post[skill]" type="text" size="50" value="<?php echo $skill;?>"/></td>
</tr>

<tr>
    <td class="tl"><span class="f_hid">*</span> 语言水平</td>
    <td><input name="post[language]" type="text" size="50" value="<?php echo $language;?>"/></td>
</tr>

<tr>
    <td class="tl"><span class="f_red">*</span> 工作性质</td>
    <td>
		<?php
		foreach ($TYPE as $k => $v) {
			?>
            <input type="radio" name="post[type]" id="type_<?php echo $k;?>" value="<?php echo $k;?>"<?php echo $k == $type ? ' checked' : '';?>/><label for="type_<?php echo $k;?>"> <?php echo $v;?></label>
			<?php
		}
		?>
    </td>
</tr>

<tr>
    <td class="tl"><span class="f_hid">*</span> 期望薪资</td>
    <td><input name="post[minsalary]" type="text" id="minsalary" size="6" value="<?php echo $minsalary;?>"/> 至 <input name="post[maxsalary]" type="text" id="maxsalary" size="6" value="<?php echo $maxsalary;?>"/> <?php echo $DT['money_unit'];?>/月 (不填或者填0为不限)</td>
</tr>

<tr>
    <td class="tl"><span class="f_red">*</span> 工作经验</td>
    <td>
        <input type="text" name="post[experience]" value="<?php echo $experience;?>" size="4" id="experience"/> &nbsp;&nbsp;年 <span id="dexperience" class="f_red"></span></td>
</tr>

<?php echo $FD ? fields_html('<td class="tl">', '<td>', $item) : '';?>

<tr>
    <td class="tl"><span class="f_red">*</span> 自我鉴定</td>
	<td><?php echo Post::kindEditor('post[content]', $moduleid, $content, 'datatype="*5-99999" nullmsg="请填写自我鉴定" errormsg="自我鉴定最少5字"','800px'); ?></td>
</tr>

<tr>
    <td class="tl"><span class="f_red">*</span> 联系手机</td>
	<td><input type="text" name="post[mobile]" id="tel" datatype="m" nullmsg="请填写联系手机" errormsg="格式不正确" value="<?php echo $mobile;?>" size="30"/> </td>
</tr>
<tr>
    <td class="tl"><span class="f_red">*</span> 电子邮件</td>
    <td><input name="post[email]" id="email" type="text" size="30" value="<?php echo $email;?>"/> <span id="demail" class="f_red"></span></td>
</tr>
<tr>
    <td class="tl"><span class="f_hid">*</span> 联系电话</td>
    <td><input name="post[telephone]" id="telephone" type="text" size="30" value="<?php echo $telephone;?>"/> <span id="dtelephone" class="f_red"></span></td>
</tr>
<tr>
    <td class="tl"><span class="f_hid">*</span> 联系地址</td>
    <td><input name="post[address]" type="text" size="60" value="<?php echo $address;?>"/></td>
</tr>
<?php if ($DT['im_qq']) { ?>
<tr>
    <td class="tl"><span class="f_hid">*</span> QQ</td>
    <td class="tr"><input name="post[qq]" type="text" size="30" value="<?php echo $qq;?>"/></td>
</tr>
	<?php } ?>
<?php if ($DT['im_ali']) { ?>
<tr>
    <td class="tl"><span class="f_hid">*</span> 阿里旺旺</td>
    <td class="tr"><input name="post[ali]" type="text" size="30" value="<?php echo $ali;?>"/></td>
</tr>
	<?php } ?>
<?php if ($DT['im_msn']) { ?>
<tr>
    <td class="tl"><span class="f_hid">*</span> MSN</td>
    <td class="tr"><input name="post[msn]" type="text" size="30" value="<?php echo $msn;?>"/></td>
</tr>
	<?php } ?>
<?php if ($DT['im_skype']) { ?>
<tr>
    <td class="tl"><span class="f_hid">*</span> Skype</td>
    <td class="tr"><input name="post[skype]" type="text" size="30" value="<?php echo $skype;?>"/></td>
</tr>
	<?php } ?>
<tr>
    <td class="tl"><span class="f_red">*</span> 求职状态</td>
    <td>
        <select name="post[situation]">
			<?php
			foreach ($SITUATION as $k => $v) {
				?>
                <option value="<?php echo $k;?>"<?php echo $k == $situation ? ' selected' : ''?>><?php echo $v;?></option>
				<?php
			}
			?>
        </select>
    </td>
</tr>

<tr>
    <td class="tl"><span class="f_hid">*</span> 简历状态</td>
    <td>
        <input type="radio" name="post[status]" value="3" <?php if ($status == 3) echo 'checked';?>/> 通过
        <input type="radio" name="post[status]" value="2" <?php if ($status == 2) echo 'checked';?>/> 待审
        <input type="radio" name="post[status]" value="1" <?php if ($status == 1) echo 'checked';?> onclick="if(this.checked) Dd('note').style.display='';"/> 拒绝
        <input type="radio" name="post[status]" value="4" <?php if ($status == 4) echo 'checked';?>/> 过期
        <input type="radio" name="post[status]" value="0" <?php if ($status == 0) echo 'checked';?>/> 删除
    </td>
</tr>
<tr id="note" style="display:<?php echo $status == 1 ? '' : 'none';?>">
    <td class="tl"><span class="f_red">*</span> 拒绝理由</td>
    <td><input name="post[note]" type="text" size="40" value="<?php echo $note;?>"/></td>
</tr>

<tr>
    <td class="tl"><span class="f_hid">*</span> 公开程度</td>
    <td>
        <input type="radio" name="post[open]" value="3" <?php if ($open == 3) echo 'checked';?>/> 开放
        <input type="radio" name="post[open]" value="2" <?php if ($open == 2) echo 'checked';?>/> 仅网站可见
        <input type="radio" name="post[open]" value="1" <?php if ($open == 1) echo 'checked';?>/> 关闭
    </td>
</tr>

<tr>
    <td class="tl"><span class="f_hid">*</span> 添加时间</td>
	<td><?php echo Post::datetimeBox('post[addtime]', $addtime, 'width:140'); ?></td>
</tr>

<!--
        <tr>
            <td class="tl"><span class="f_hid">*</span> 浏览次数</td>
            <td><input name="post[hits]" type="text" size="10" value="<?php echo $hits;?>"/></td>
        </tr>
        -->
<tr>
    <td class="tl"><span class="f_hid">*</span> 会员名</td>
    <td><input name="post[username]" type="text" size="20" value="<?php echo $username;?>" id="username"/> <a href="javascript:_user(Dd('username').value);" class="t">[资料]</a></td>
</tr>
</table>
<div class="sbt"><input type="submit" name="submit" value=" 确 定 " class="btn"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" name="reset" value=" 重 置 " class="btn"/></div>
</form>
<script type="text/javascript">
	seajs.use(['$', 'vf', 'vf-css', 'easyui','easyui-css'], function($){
		$('#dform').Validform({
			beforeCheck:function(curform){
				lemon.editor.post_content_.sync();
			}
		});
	})
</script>
<script type="text/javascript">Menuon(<?php echo $menuid;?>);</script>
<?php include tpl('footer'); ?>